package com.tduck.cloud.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tduck.cloud.account.entity.RoleEntity;
import com.tduck.cloud.account.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色映射器
 *
 * @author Guard Baby
 * @date 2023/09/09
 */
public interface RoleMapper extends BaseMapper<RoleEntity> {
    List<RoleEntity> getRoleByUserId(@Param("userId") Long userId);
    List<Long> getUserIdsByRoleIds(@Param("roleIds") List<Long> roleIds);
}
